//
//  PhoneRechargeEntity.swift
//  Entrance
//
//  Created Chunhui on 2018/1/31.
//  Copyright © 2018年 chunhuiLai. All rights reserved.
//

import Foundation
import RxDataSources

typealias PhoneRechargeSection = AnimatableSectionModel<String, PhoneRechargeEntity>

class PhoneRechargeEntity {
    var id: String = ""
    var worth: String = ""
    var price: String = ""
    var description: String = ""
    
    convenience init(id: String, price: String) {
        self.init()
        self.id = id
        self.price = price
    }
}

extension PhoneRechargeEntity: IdentifiableType, Equatable {
    typealias Identity = String
    var identity: String {
        return id
    }
    
    static func ==(lhs: PhoneRechargeEntity, rhs: PhoneRechargeEntity) -> Bool {
        return lhs.id == rhs.id
    }
}
